﻿using Clothes.Comment;
using Clothes.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Clothes.IBLL
{
    public interface CLLoginIBLL
    {
        /// <summary>
        /// 注册
        /// </summary>
        /// <param name="name">姓名</param>
        /// <param name="Number">手机号</param>
        /// <param name="Password">密码</param>
        /// <param name="Manager">是否是管理员（0不是 1是）</param>
        /// <returns></returns>
        OperResult Register(string name, string Number, string Password, int Manager);

        /// <summary>
        /// 根据手机号和密码查找信息
        /// </summary>
        /// <param name="mobileNumber"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        CLLogin SelectBLL(string mobileNumber, string password);

        /// <summary>
        /// 根据姓名和密码查找信息
        /// </summary>
        /// <param name="mobileNumber"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        CLLogin SelectSourceBLL(string UserName, string password);

        CLLogin SelectId(int id);

    }
}
